package com.sumainfor.wx.system.maket.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.feign.BaseFeignZuul;
import com.sumainfor.wx.system.feign.ZuulFeign.ZuulFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 *  租赁顾问获取系统消息
 * <p>
 *
 * @author: zc
 * @create: 2019-09-09 18:52
 **/
@Controller
@RequestMapping("/message")
public class MessageMkController {

    @Autowired
    BaseFeignZuul baseFeignZuul;

    @Autowired
    ZuulFeign zuulFeign;

    @ResponseBody
    @PostMapping("/getSysMessageList")
    public JsonResult getSysMessageList(@RequestBody Map<String,Object> params){
       return  baseFeignZuul.getSysMessageList(params);
    }
}
